import request from '@/utils/request'

// 查询奖励记录列表
export function listRewards(query) {
  return request({
    url: '/funct/rewards/list',
    method: 'get',
    params: query
  })
}

// 查询奖励记录详细
export function getRewards(id) {
  return request({
    url: '/funct/rewards/' + id,
    method: 'get'
  })
}

// 新增奖励记录
export function addRewards(data) {
  return request({
    url: '/funct/rewards',
    method: 'post',
    data: data
  })
}

// 修改奖励记录
export function updateRewards(data) {
  return request({
    url: '/funct/rewards',
    method: 'put',
    data: data
  })
}

// 删除奖励记录
export function delRewards(id) {
  return request({
    url: '/funct/rewards/' + id,
    method: 'delete'
  })
}
